import 'dart:convert';

BookKnowledgeStatusResult bookKnowledgeStatusResultFromJson(String str) => BookKnowledgeStatusResult.fromJson(json.decode(str));
String bookKnowledgeStatusResultToJson(BookKnowledgeStatusResult data) => json.encode(data.toJson());

class BookKnowledgeStatusResult {
    BookKnowledgeStatusResult({
        this.status,
        this.message,
        this.result,
    });

    int? status;
    String? message;
    Map<String, KnowledgeStatus>? result;

    factory BookKnowledgeStatusResult.fromJson(Map<String, dynamic> json) => BookKnowledgeStatusResult(
        status: json["status"],
        message: json["message"],
        result: Map.from(json["result"]).map((k, v) => MapEntry<String, KnowledgeStatus>(k, KnowledgeStatus.fromJson(v))),
    );

    Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": Map.from(result!).map((k, v) => MapEntry<String, dynamic>(k, v.toJson())),
    };
}

class KnowledgeStatus {
    KnowledgeStatus({
        this.grammar,
        this.word,
        this.quickReview,
    });

    String? grammar;
    String? word;
    String? quickReview;

    factory KnowledgeStatus.fromJson(Map<String, dynamic> json) => KnowledgeStatus(
        grammar: json["grammar"]== null ? null : json["grammar"],
        word: json["word"] == null ? null : json["word"],
        quickReview: json["quickReview"] == null ? null : json["quickReview"],
    );

    Map<String, dynamic> toJson() => {
        "grammar": grammar,
        "word": word == null ? null : word,
        "quickReview": quickReview == null ? null : quickReview,
    };
}
